//统一管理项目中的网络请求
import service from '../utils/request'
//注册请求
export function logon_register( params = {} ){
    return service.post('/user/register' , params);
}
//登录请求
export function login( params = {} ){
    return service.post('/user/login' , params );
}
//首页轮播图请求
export function home_banner( params = {} ){
    return service.get('/index/banner' , {params} );
}
//首页分类请求
export function home_nav( params = {} ){
    return service.get('/index/nav' , {params} );
}
//首页商品列表请求
export function home_goodlist( params = {} ){
    return service.get('/index/goodlist' , {params} );
}
//分类页一级菜单请求
export function classify_list( params = {} ){
    return service.get('/category/list' , {params} );
}
//分类页二级菜单请求
export function classify_arr( params = {} ){
    return service.get('/category/subcate' , {params} );
}
//全部商品页列表请求
export function commodity_arr( params = {} ){
    return service.get('/good/list' , {params} );
}
//所有商品——按关键词搜索
export function commodity_data(params = {}) {
    return service.get('/good/search' , {params} );
}
//热门搜索
export function commodity_list(params = {}) {
    return service.get('/good/hotsearch' , {params} );
}
//分类搜索请求
export function classify_data(params = {}) {
    return service.get('/good/list' , {params} );
}
//详情页请求
export function details_list(params = {}) {
    return service.get('/good/goodinfo' , {params} );
}